﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebFormSubArea.aspx.cs" Inherits="Sitio.WebFormSubArea" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href ="estilo.css"  rel="Stylesheet" type="text/css" />
    <style type="text/css">

        .style2
        {
            height: 26px;
            width: 251px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="font-size: large">
    
        <strong>SUB-AREA</strong><br />
        <asp:Label ID="Label1" runat="server" style="color: #FF0000"></asp:Label>
        <br />
        <strong>NOMBRE:</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox1" runat="server" MaxLength="50" Width="223px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
            runat="server" ControlToValidate="TextBox1" 
            ErrorMessage="RequiredFieldValidator" style="font-size: medium" 
            ValidationGroup="Validar">Ingrese Nombre</asp:RequiredFieldValidator>
&nbsp;
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="TextBox1" ErrorMessage="RegularExpressionValidator" 
            style="font-size: medium" ValidationExpression="[a-zA-ZñÑ\s]{2,50}" 
            ValidationGroup="Validar">Ingrese letras</asp:RegularExpressionValidator>
        <br />
        <strong>AREA:&nbsp;</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList1" runat="server" Height="23px" Width="230px">
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="GUARDAR" style="font-size: medium; font-weight: 700" 
            ValidationGroup="Validar" />
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
            style="font-size: medium; font-weight: 700" Text="Regresar" Width="95px" />
&nbsp;<br />
        <br />
        <br />
        <strong>RESULTADOS</strong><br />
        <span class="style2"><strong>
                <asp:GridView ID="grdCentroDeCosto" runat="server" AutoGenerateColumns="False" 
                    onrowcommand="ResultGrid_RowCommand" 
                    onselectedindexchanged="grdCentroDeCosto_SelectedIndexChanged" 
            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
            CellPadding="4" EnableModelValidation="True" ForeColor="Black" 
            GridLines="Horizontal" Height="164px" Width="373px">
                    <Columns>
                        <asp:BoundField DataField="LSUBAREAS_ID1" 
                            HeaderText="ID" SortExpression="LSUBAREAS_ID1" />
                        <asp:BoundField DataField="SNOMBRE1" HeaderText="Nombre" 
                            SortExpression="SNOMBRE1" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                </strong></span>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
    
    </div>
    </form>
</body>
</html>
